package cn.topevery.garden.entity.po;

import cn.topevery.garden.framework.base.BaseEntity;
import hw.topevery.framework.annotation.DbTable;
import hw.topevery.framework.annotation.DbTableField;
import hw.topevery.framework.enums.DbTypeEnum;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDate;

/**
 * 项目请款计划表
 *
 * @author code-generate
 * @date 2022-11-02
 */
@Data
@DbTable(tableName = "t_proj_request_funds_plan")
public class ProjRequestFundsPlan extends BaseEntity {

    /**
     * 请款ID
     */
    @DbTableField(columnName = "c_req_funds_id", dbType = DbTypeEnum.VARCHAR)
    public String reqFundsId;

    /**
     * 项目ID
     */
    @DbTableField(columnName = "c_proj_id", dbType = DbTypeEnum.VARCHAR)
    public String projId;

    /**
     * 合同ID
     */
    @DbTableField(columnName = "c_contract_id", dbType = DbTypeEnum.VARCHAR)
    public String contractId;

    /**
     * 合同名称
     */
    @DbTableField(columnName = "c_contract_name", dbType = DbTypeEnum.VARCHAR)
    public String contractName;

    /**
     * 请款日期
     */
    @DbTableField(columnName = "c_req_date", dbType = DbTypeEnum.DATE)
    public LocalDate reqDate;

    /**
     * 请款总金额（万元）
     */
    @DbTableField(columnName = "c_req_funds_total_money", dbType = DbTypeEnum.DECIMAL)
    public BigDecimal reqFundsTotalMoney;

    /**
     * 请款金额（万元）
     */
    @DbTableField(columnName = "c_req_funds_money", dbType = DbTypeEnum.DECIMAL)
    public BigDecimal reqFundsMoney;

    /**
     * 资金来源编码(1 政府投资、2 部门预算等数据字典)
     */
    @DbTableField(columnName = "c_funds_source", dbType = DbTypeEnum.VARCHAR)
    public String fundsSource;

    /**
     * 请款标题
     */
    @DbTableField(columnName = "c_req_funds_title", dbType = DbTypeEnum.VARCHAR)
    public String reqFundsTitle;

    /**
     * 请款第几次
     */
    @DbTableField(columnName = "c_req_funds_count", dbType = DbTypeEnum.INTEGER)
    public Integer reqFundsCount;

    /**
     * 指标下达日期
     */
    @DbTableField(columnName = "c_index_release_date", dbType = DbTypeEnum.DATE)
    public LocalDate indexReleaseDate;

    /**
     * 指标文号
     */
    @DbTableField(columnName = "c_index_no", dbType = DbTypeEnum.VARCHAR)
    public String indexNo;

    /**
     * 计划金额（万元）
     */
    @DbTableField(columnName = "c_plan_money", dbType = DbTypeEnum.DECIMAL)
    public BigDecimal planMoney;

    /**
     * 已支付金额（万元）
     */
    @DbTableField(columnName = "c_payment_money", dbType = DbTypeEnum.DECIMAL)
    public BigDecimal paymentMoney;

    /**
     * 支付是否完成(0 否， 1 是）
     */
    @DbTableField(columnName = "c_is_payment_complate", dbType = DbTypeEnum.INTEGER)
    public Integer isPaymentComplate;

    /**
     * 请款比例
     */
    @DbTableField(columnName = "c_req_scale", dbType = DbTypeEnum.DECIMAL)
    public BigDecimal reqScale;

    /**
     * 备注
     */
    @DbTableField(columnName = "c_remark", dbType = DbTypeEnum.VARCHAR)
    public String remark;

    /**
     * 经办人
     */
    @DbTableField(columnName = "c_operator", dbType = DbTypeEnum.VARCHAR)
    public String operator;
}
